﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FashionWebsite.Models.Entities
{
   
    public class MProductCategory
    {
        [Required]
        [Display(Name = "Tên Loại Sản Phẩm")]
        public string CategoryName { get; set; }

        [Required]
        [System.ComponentModel.ReadOnly(true)]
        [Display(Name = "Mã Loại Sản Phẩm")]
        public int CategoryId { get; set; }

       
        public bool IsDeleted { get; set; }
        public MProductCategory(Category category)
        {
            CategoryName = category.CategoryName;
            CategoryId = category.CategoryId;
            
        }

        public MProductCategory()
        {
        }


       
    }
}